package com.bwie.house.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.common.utils.PageUtils;
import com.bwie.common.utils.Query;

import com.bwie.house.dao.BrokerDao;
import com.bwie.house.entity.BrokerEntity;
import com.bwie.house.service.BrokerService;


@Service("brokerService")
public class BrokerServiceImpl extends ServiceImpl<BrokerDao, BrokerEntity> implements BrokerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<BrokerEntity> page = this.page(
                new Query<BrokerEntity>().getPage(params),
                new QueryWrapper<BrokerEntity>()
        );

        return new PageUtils(page);
    }

}